package icu.sehnen.service;

import icu.sehnen.dao.NavDao;
import icu.sehnen.model.NavModel;

import java.util.ArrayList;
import java.util.List;

public class NavService {
    public List<NavModel> getNavModelListForHome() {
        List<NavModel> navModelList=new ArrayList<>();
        NavDao navDao=new NavDao();
        Integer length=navDao.titles.size();
        for (int i=0;i<length;i++){
            NavModel navModel=new NavModel();
            navModel.setHref(navDao.hrefs.get(i));
            navModel.setTitle(navDao.titles.get(i));
            navModelList.add(navModel);
        }
        return  navModelList;
    }

    public List<NavModel> getNavModelListForAbout() {
      return   getNavModelListForHome();

    }
}
